<!--#include('header.html')-->

<!--%load_js_plugin("ui.datepicker")-->
<div class="search">
    <form action="{getUrl()}" id="fo_search">
        <input type="hidden" name="act" value="dispIssuetrackerTimeline" />
        <input type="hidden" name="mid" value="{$mid}" />
        <input type="hidden" name="vid" value="{$vid}" />
        {$lang->msg_changes_from}:
        <input type="hidden" name="enddate" id="enddate" class="inputTypeText" value="{$enddate}" />
        <input type="text" class="inputDate inputText" value="<!--@if($enddate)-->{zdate($enddate,'Y-m-d')}<!--@end-->" readonly="readonly" />
        , {$lang->duration}: <input type="text" name="duration" class="inputTypeText w40" value="{$duration}" />
        <br />
        <!--@foreach($lang->target_list as $key => $val)-->
        <input name="targets[]" type="checkbox" value="{$key}" <!--@if(in_array($key,$targets))-->checked="checked"<!--@end--> id="targets_{$key}"/><label for="targets_{$key}"> {$val}</label>
        <!--@end-->
		<span class="buttonOfficial"><input type="button" value="{$lang->cmd_update}"  onclick="xGetElementById('fo_search').submit();return false;" /></span>

    </form>
</div>
<div class="clear"></div>


{@ $curDate = null}
<!--@foreach($changesets as $changeset)-->

<!--@if(!$curDate || $curDate != zdate($changeset->date, "Y-m-d"))-->
{@ $curDate = zdate($changeset->date, "Y-m-d")}
<!--@if($curDate)--></dl><!--@end-->
<h4>{$curDate}</h4>
<dl class="changeset">
<!--@end-->
<dt>
    <span class="time">{zdate($changeset->date,"H:i")}</span>
    <!--@if($changeset->type)-->
    {@ $oIssue = $issues[$changeset->target_srl]; }
    <a href="{getUrl('','document_srl',$changeset->target_srl)}">Issue <em><!--@if($oIssue->isClosed())--><span class="closed"><!--@end-->#{$changeset->target_srl}<!--@if($oIssue->isClosed())--></span><!--@end--></em></a> ({htmlspecialchars($issues[$changeset->target_srl]->getTitleText(30))}) {$lang->timeline_msg[$changeset->type]} by <span class="author">{$changeset->author}</span>
    <!--@else-->
    <a href="{getUrl('act','dispIssuetrackerViewSource','erev',$changeset->revision,'type','log')}">Changeset <em>[{$changeset->revision}]</em></a> by <span class="author">{$changeset->author}</span>
    <!--@end-->
</dt>
<dd>
<p><!--@if($changeset->type)--><!--@if($changeset->type == "changed")--><span class="status">{$changeset->message}</span><br /><!--@endif-->{$issues[$changeset->target_srl]->getContentText(80)}<!--@else-->{$changeset->message}<!--@end--></p></dd>
<!--@end-->
</dl>
<script type="text/javascript">
(function($){
    $(function(){
        var option = { gotoCurrent: false,yearRange:'-100:+10', onSelect:function(){

            $(this).prev('input[type="hidden"]').val(this.value.replace(/-/g,""))}
        };
        $.extend(option,$.datepicker.regional['{$lang_type}']);
        $(".inputDate").datepicker(option);
    });
})(jQuery);
</script>

<!--#include('footer.html')-->
